import 'package:flutter/material.dart';


// https://api.flutter.dev/flutter/material/SliverAppBar-class.html

class SliverAppScreens extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: CustomScrollView(
        slivers: <Widget>[
          SliverAppBar(
            expandedHeight: 150,
            flexibleSpace: FlexibleSpaceBar(
              background: Container(color: Colors.black26),
            ),
            floating: true,
            title: Text("Sliver App Bar"),
            backgroundColor: Colors.red,
          ),
          SliverAppBar(
            expandedHeight: 150,
            automaticallyImplyLeading: false,
            flexibleSpace: Container(color: Colors.cyan,),
          ),
          SliverAppBar(
            expandedHeight: 150,
            automaticallyImplyLeading: false,
            flexibleSpace: Container(color: Colors.pink,),
          ),
          SliverAppBar(
            expandedHeight: 150,
            automaticallyImplyLeading: false,
            flexibleSpace: Container(color: Colors.white,),
          ),
          SliverAppBar(
            expandedHeight: 150,
            automaticallyImplyLeading: false,
            flexibleSpace: Container(color: Colors.purple,),
          ),
        ],
      ),
    );
  }
}